package com.example.aircraft.gamemode;

import android.content.Context;

import com.example.aircraft.R;
import com.example.aircraft.aircraft.EnemyFactory;
import com.example.aircraft.gamemode.GameBase;

public class NormGame extends GameBase {
    public NormGame(Context context) {
        super(context);
        this.level = 2;
        this.enemyFactory = new EnemyFactory(level);
        this.bkGroundId = R.drawable.bg5;
    }
    @Override
    protected boolean timeCountAndNewCycleJudge(){
        cycleTime += timeInterval;
        if (cycleTime >= cycleDuration && cycleTime - timeInterval < cycleTime) {
            // 跨越到新的周期
            cycleTime %= cycleDuration;
            timeInterval=(timeInterval<cycleDuration/10)?timeInterval+1:cycleDuration/10;


            return true;
        } else {
            return false;
        }
    }
}
